﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Orders.aspx.cs" Inherits="admin_Course_Orders" %>

<%@ Register Src="Menu.ascx" TagName="TabMenu" TagPrefix="menu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="content-box-outer">
        <div class="content-box-right">
            <menu:TabMenu ID="TabMenu" runat="server" />
        </div>
        <div class="content-box-left">
            <h1>Quản lý Hóa đơn</h1>
            <%if (Count() == 0)
              { %>
            <div class="info">
                Bạn chưa có hóa đơn
            </div>
            <%}
              else
              { %>
            <div id="Container">
                
                <div class="tableToolBox">
                    Hiển thị: <a class="current" href="Orders.aspx" title="Tất cả">Tất cả
                    </a> <span id="filteredby">Có tất cả
                                <%=Count() %>
                                bản tin được tìm thấy</span>
                    <div class="Pager">
                        <asp:PagingControl ID="PagingControl1" runat="server" FirstPageText="" LastPageText=""
                            PreviousPageText="" NextPageText="" />
                    </div>
                    <div class="PageSize">
                        <label for="pageSizeTop">
                            Số dòng / trang&nbsp;</label>
                        <select id="pageSizeTop" name="pageSizeTop" onchange="return ChangePageSize(this)">
                            <option value="10" selected="selected">10</option>
                            <option value="25">25</option>
                            <option value="50">50</option>
                            <option value="100">100</option>
                        </select>
                    </div>
                </div>
                <table id="Posts" class="beTable rounded" style="width: 100%">
                    <thead>
                        <tr>
                            <th width="100" style="text-align: center;">ID
                            </th>
                            
                            <th width="auto">Ngày
                            </th>
                             <th width="auto">Thành viên
                            </th>
                             <th width="auto">Tổng số tiền
                            </th>
                            <th width="120">&nbsp;
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="rpt" runat="server">
                            <ItemTemplate>
                                <tr id="simplehighlight" class="simplehighlight">
                                    <td style="text-align: center;">
                                        <%#Eval("OrderID") %>
                                    </td>
                                   
                                    <td>
                                        <span>  <%#Eval("DateCreated", "{0:d}") %></span>
                                    </td>
                                    <td>
                                        <%#GetPerson(Eval("PersonID")) %>

                                    </td>
                                   <td> <%#Eval("Totals") %></td>
                                    <td>
                                        <ul class="rowTools">
                                            <li><a class="toolsAction" href="#"><span class="">Công cụ</span></a>
                                                <ul class="rowToolsMenu">
                                                    <li><a class="editAction" href="OrderDetail.aspx?OrderId=<%#Eval("OrderID") %>">Xem</a></li>
                                                   
                                                    <li><a class="deleteAction" href="#" onclick="return $.dalatcooking.(<%#Eval("OrderID") %>)">Xóa</a></li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
                <div class="Pager">
                    <asp:PagingControl ID="PagingControl2" runat="server" FirstPageText="" LastPageText=""
                        PreviousPageText="" NextPageText="" />
                </div>
                <div class="PageSize">
                    <label for="pageSizeBottom">
                        Số dòng / trang&nbsp;</label>
                    <select id="pageSizeBottom" name="pageSizeBottom" onchange="return ChangePageSize(this)">
                        <option value="10" selected="selected">10</option>
                        <option value="25">25</option>
                        <option value="50">50</option>
                        <option value="100">100</option>
                    </select>
                </div>
            </div>
            <%} %>
        </div>
    </div>
    <div style="display: none">
        
    </div>
</asp:Content>


